package cn.yanghan.org.service;

import cn.yanghan.org.domain.Department;
import cn.yanghan.org.query.DepartmentQuery;
import cn.yanghan.org.utils.QueryResult;

import java.util.List;

public interface IDepartmentService {
    //基础查询
    void save(Department department);

    void delete(Long id);

    void update(Department department);

    Department loadById(Long id );

    List<Department> loadAll();


    //封装高级查询和分页
    QueryResult<Department> queryPage(DepartmentQuery query);

    //批量删除
    void patchDel(Long[] ids);

    List<Department> loadDeptTree();
}
